/**
 * @file       LCDFactory.cpp
 * @brief      TODO
 * @author     Huabo Zheng
 * @date       Jan 20, 2012
 * @Copyright  2012, www.netgear.com Inc. All rights reserved.
 */

#include "typedefine.h"
#include "lcd/LCDFactory.h"
#include "lcd/UnixTermDisplay.h"
#include "SafeSingleton.h"
#include "lcd/UnixInput.h"

namespace NS_LCD_AFW
{

CLCDFactory::CLCDFactory()
{
}

CLCDFactory::~CLCDFactory()
{
}

IDisplay *CLCDFactory::createDisplayDevice(int type)
{
	return (&(CSafeSingleton<CUnixTermDisplay>::getInstance()));
}

IInput *CLCDFactory::createInputDevice(int type)
{
	 return (&(CSafeSingleton<CUnixInput>::getInstance()));
}

} /* namespace NS_LCD_AFW */
